//
//  JSTCommonCenterView.h
//  KYKJPackDemo
//
//  Created by 01 on 17/5/17.
//  Copyright © 2017年 ???. All rights reserved.
//

#import "JSTPublicView.h"

@class JSTCommonCenterView;
@protocol CommonCenterViewDelegate <NSObject>

/*是否允许评论*/
- (void) isAllowCommentWithCommonCenterView:(NSString *) string;

/*发表评论*/
-(void)inputBar:(JSTCommonCenterView *)commonCenterView sendBtnPress:(UIButton*)sendBtn withInputString:(NSString*)str;

@end

@interface JSTCommonCenterView : JSTPublicView

//代理 用于传递btn事件
@property(assign,nonatomic)id<CommonCenterViewDelegate> delegate;
//这两个可以自己付值
@property(strong,nonatomic)UITextView *comTextView;
@property(strong,nonatomic)UIButton *sendBtn;
@property(strong,nonatomic)UIButton *showBtn;   //表情按钮

//键盘的大小
@property(assign,nonatomic)CGRect keyboardFrame;

//点击btn时候 清空  默认NO
@property(assign,nonatomic)BOOL clearInputWhenSend;
//点击btn时候 隐藏键盘  默认NO
@property(assign,nonatomic)BOOL resignFirstResponderWhenSend;

//初始frame
@property(assign,nonatomic)CGRect originalFrame;

//键盘是否显示
@property(assign,nonatomic)BOOL keyboardIsShow;

//覆盖的视图
- (void) createCoverView:(BOOL )isCreate;

//隐藏键盘
-(BOOL)resignFirstResponder;

@end
